<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<jsp:useBean id="randomId" class="com.lmpop.frame.util.RandomID" scope="page" /> 
<html>
<%
	String shipping_id =  randomId.GenTradeId();
	String cust_id="";	
	if( session.getAttribute("session_cust_id") != null )
	{
		cust_id = session.getAttribute("session_cust_id").toString();
	}
	String in_date=new Date().toLocaleString();
%>
  <head>
    <title>ti_shipping Manager</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="shipping.js"></script>
	<script type="text/javascript" src="/program/admin/js/judgment.js" charset="UTF-8"></script>
</head>

<body>
	<h1>新增配送方式</h1>	  
	
	<form action="/doTradeReg.do" method="post" name="addForm">
	
	<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtab">
		
		<input name="shipping_id" id="shipping_id" type="hidden" value="<%=shipping_id%>"/>

		<input name="cust_id" id="cust_id" type="hidden" value="<%=cust_id%>"/>	
		
		
		<tr>
			<td align="right" width="15%">
				配送方式名称<font color="red">*</font>
			</td>
			<td align="left" width="20%"><input name="ship_name" id="ship_name" type="text" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this); " /></td>
		<td align="right" width="15%">
				启用状态:
			</td>
			<td width="20%"><input name="is_enable" id="is_enable" type="radio" value="0" checked/>启用
				<input name="is_enable" id="is_enable" type="radio" value="1"/>禁用
				</td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				是否货到付款:
			</td align="left">
			<td><input name="is_pay" id="is_pay" type="radio" value="0" checked/>是
				<input name="is_pay" id="is_pay" type="radio" value="1"/>否
				</td>
			<td align="right" width="15%">
				货到付款支付费:
			</td>
			<td><input name="arrive_fare" id="arrive_fare" type="text" size="5" maxlength="5" onkeyup="if(isNaN(this.value))this.value='';else inputNoHorns(this)" onbeforepaste= "inputNoHorns(this); "/>元</td>
			<!-- 
			<td align="right">
				到货区域:
			</td>
			<td><input name="area_attr" id="area_attr" type="text" /></td>
			 -->
		</tr>

		<tr>
			
		
				<td align="right">
				费用计算方式:
			</td>
			<td colspan="3"><input name="cal_type" id="cal_type" type="radio" value="0" checked/>按重量计算
				<input name="cal_type" id="cal_type" type="radio" value="1"/>按商品件数计算
				</td>				
		</tr>
		
		<tr>
			<td align="right" width="15%">
				续重费用:
			</td>
			<td><input name="con_fare" id="con_fare" type="text" size="5" maxlength="5" onkeyup="if(isNaN(this.value))this.value='';else inputNoHorns(this)" onbeforepaste= "inputNoHorns(this); "/>元</td>
			<td align="right">
				首重费用:
			</td>
			<td><input name="first_fare" id="first_fare" type="text" size="5" maxlength="5" onkeyup="if(isNaN(this.value))this.value='';else inputNoHorns(this)" onbeforepaste= "inputNoHorns(this); "/>元</td>			
		</tr>
		
		<tr>
			<td align="right" width="15%">
				单件商品费用:
			</td>
			<td><input name="one_fare" id="one_fare" type="text" size="5" maxlength="5" onkeyup="if(isNaN(this.value))this.value='';else inputNoHorns(this)" onbeforepaste= "inputNoHorns(this); "/>元</td>
			<td align="right">
				免费额度:
			</td>
			<td><input name="free_fare" id="free_fare" type="text" size="5" maxlength="5" onkeyup="if(isNaN(this.value))this.value='';else inputNoHorns(this)" onbeforepaste= "inputNoHorns(this); "/>元</td>		
		</tr>
		
		
	<tr>
			<td align="right" width="15%">
				配送方式描述:
			</td>
			<td colspan="3"><textarea name="ship_desc" id="ship_desc" rows="3" cols="100" onkeyup="if(isNaN(this.value))this.value='';else inputNoHorns(this)" onbeforepaste= "inputNoHorns(this); "/></textarea></td>
		</tr>		
		
		<!--<tr>
			<td align="right" width="20%">
				编辑时间:
			</td>
			<td><input name="in_date" id="in_date" type="text" /></td>
		</tr>-->
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input name="in_date" id="in_date" type="hidden" value="<%=in_date%>" />
				<input name="area_attr" id="area_attr" type="hidden" />
				<input type="hidden" name="bpm_id" value="0226" />
				<input type="submit" class="buttoncss" name="tradeSub" value="提交" onclick="return checkInfo();"/>&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='index.jsp';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
